<?php
namespace Swiftx\Bundle\WeChat\Interfaces\Controller\Company;
use Swiftx\Interfaces\Httpd\Request;
use Swiftx\Interfaces\Httpd\Response;

/**
 * 用户登录页面接口
 * @default-implement Swiftx\Bundle\WeChat\Controller\Company\Login singleton=true
 * @router-annotation Swiftx\Component\Router\Annotation\Method
 */
interface Login {

    /**
     * 显示图片验证码
     * @param Request   $request
     * @param Response  $response
     * @router method   get
     * @return bool
     */
    public function showVerifyImage(Request $request, Response $response): bool;

    /**
     * 验证用户身份操作
     * @param Request   $request
     * @param Response  $response
     * @router method   post
     * @return bool
     */
    public function actionVerifyIdentity(Request $request, Response $response): bool;

}